<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>Test_SNF_PRL_39_AddNewpageForGroup</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test_SNF_PRL_39_AddNewpageForGroup</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/portal/public/classic/</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Add new page for group --</td>
	<td></td>
</tr>
<tr>
	<td>windowMaximize</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>root</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>gtn</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='UIPortalLoginFormAction']</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Application Registry</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Click Add new page on Group editor menu--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Add New Page</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Add New Page</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIPageNodeSelector']//a[@title='Up Level']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIPageNodeSelector']//a[@title='Up Level']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>pageName</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>pageName</td>
	<td>Test_SNF_PRL_39</td>
</tr>
<tr>
	<td>type</td>
	<td>i18nizedLabel</td>
	<td>Test_SNF_PRL_39</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Click Next to move step 2--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[contains(text(),'Next')]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[contains(text(),'Next')]</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Keep empty layout and click Next move step 3--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[contains(text(),'Next')]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[contains(text(),'Next')]</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Click Finish --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@title='Finish']</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//a[@title='Finish']</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>http://localhost:8080/portal/private/classic/administration/Test_SNF_PRL_39</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Go to Edit Navigation --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Group</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Group</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Administrators</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//td/div[text()='Administrators']/ancestor::tr/td/a[text()='Edit Navigation']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//td/div[text()='Administrators']/ancestor::tr/td/a[text()='Edit Navigation']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Delete node --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@title='Test_SNF_PRL_39']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//a[@title='Test_SNF_PRL_39']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_39']</td>
	<td></td>
</tr>
<tr>
	<td>mouseDownRight</td>
	<td>//a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_39']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Delete Node</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Delete Node</td>
	<td></td>
</tr>
<tr>
	<td>waitForConfirmationPresent</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure to delete this node?</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Go to Page Management --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Page Management</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Page Management</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>pageTitle</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>pageTitle</td>
	<td>Test_SNF_PRL_39</td>
</tr>
<tr>
	<td>select</td>
	<td>name=searchOption</td>
	<td>label=group</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@title='Quick Search']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//a[@title='Quick Search']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Delete page --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//img[@title='Delete Page']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//img[@title='Delete Page']</td>
	<td></td>
</tr>
<tr>
	<td>waitForConfirmationPresent</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure to delete this page?</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>No result found.</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>No result found.</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[contains(@onclick,&quot;action=Close&quot;)]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[contains(@onclick,&quot;action=Close&quot;)]</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextNotPresent</td>
	<td>Test_SNF_PRL_39</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextNotPresent</td>
	<td>Test_SNF_PRL_39</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>
